<!DOCTYPE html>
<html>

<head>
</head>
</body>
<h1>实例01 javascript的单行注释</h1>
<script>
//输出标题
document.write("<h3>Welcome to javascript of world</h3>")
//输出段落
document.write("<p>This is my world</p>")
</script>

<br/>
<br/>
<br/>
<br/>
<br/>

<h1>实例02 javascript的多行注释</h1>
<h2 id = "myH3"></h3>
<p id = "myp"></p>
<script>
/*这
是
个
多
行
注
释*/
document.getElementById("myH3").innerHTML = "Welcome to my Homepage";
document.getElementById("myp").innerHTML="This is my first paragraph.";
</script>
<p><b>注释：</b>注释块不会被执行。</p>

<br/>
<br/>
<br/>
<br/>
<h1> 案例03 注释放到代码行后面</h1>
<p id = "myP"></p>
<script>
var x=5; 
var y = x+2;
document.getElementById("myP").innerHTML = y // 注释 
</script>







</body>

</html>